$(function(){ 
	window.BaseView = Backbone.View.extend({
		el : $('#mainContent'),
		initialize : function() {
			this.template = _.template($('#base-template').html());
		},

		render : function() {
			var renderedContent = this.template(this.model.toJSON());
			$(this.el).html(renderedContent);
			/* --------- Main resizable & draggable ---------*/
			$(".mainContent").resizable({
					alsoResize: ".content,.body"
			});
			$(".mainContent").draggable({ handle: '.header' });
			return this;
		}

	});
});
